<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="renderer" content="webkit"/>

    <title>微光办公自动化平台</title>

    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台"/>
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术"/>

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->

    <!--<link rel="shortcut icon" href="favicon.ico">-->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link th:href="@{/css/style.css}" rel="stylesheet"/>
    <!--<link rel="shortcut icon" th:href="../static/favicon.ico">-->
    <!--<link href="../static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">-->
    <!--<link href="../static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">-->
    <!--<link href="../static/css/animate.css" rel="stylesheet">-->
    <!--<link href="../static/css/style.css?v=4.1.0" rel="stylesheet">-->
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <!--<strong th:if="${session.user.getUserAvator() == null}">用户未上传头像</strong>-->
                        <span th:if="${session.user.userAvator != null}"><img alt="image"
                                                                              style="width: 70px;height: 70px"
                                                                              class="img-circle"
                                                                              th:src="${session.user.userAvator}"/></span>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span style="position: relative;left: 15px;" class="block m-t-xs"><strong class="font-bold"
                                                                                           th:text="${session.user.userName}"></strong></span>
                                <span class="text-muted text-xs block" th:if="${session.role != null}" ><span th:text="${session.role}"></span><b class="caret"></b></span>
                                <span class="text-muted text-xs block" th:if="${session.role == null}">未分配角色<b class="caret"></b></span>
                                </span>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li><a class="J_menuItem" href="/personal/show">个人资料</a>
                            </li>
                            <li><a class="J_menuItem" href="/message/toMessagePage/0?status=-3">信箱</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="/user/logout">安全退出</a>
                            </li>
                        </ul>
                    </div>
                    <div class="logo-element">微光
                    </div>
                </li>
                <li>
                    <a href="#">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">个人办公</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/personal/show" data-index="0">个人信息</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/schedule/showSchedules">日程安排</a>
                        </li>
                        <li>
                            <a href="#">待办事项 <span class="fa arrow"></span></a>
                            <ul class="nav nav-third-level">
                                <li><a class="J_menuItem" href="/thing/toTimeEndPlan">到期日程</a>
                                </li>
                                <li><a class="J_menuItem" href="/thing/toMsgList">留言清单</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/message/toMessagePage/1?status=-3">留言信息</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/namecard/toNameCardPage">名片夹</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/toAddressList">通讯录</a>
                        </li>
                        <!--<li>-->
                            <!--<a href="#">文件夹 <span class="fa arrow"></span></a>-->
                            <!--<ul class="nav nav-third-level">-->
                                <!--<li><a class="J_menuItem" href="./personal/file_directory_personal.html">个人文件夹</a>-->
                                <!--</li>-->
                                <!--<li><a class="J_menuItem" href="./personal/file_directory_share.html">共享文件夹</a>-->
                                <!--</li>-->
                            <!--</ul>-->
                        <!--</li>-->
                    </ul>
                </li>

                <li id="meetli" >
                    <a href="#">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">会议管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="toMeetList" data-index="0">会议列表</a>
                        </li>
                    </ul>
                </li>
                <li id="roomli">
                    <a href="#">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">会议室管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/toPreorder" data-index="0">会议室预约</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/toRoom" data-index="0">会议室管理</a>
                        </li>
                        <li><a class="J_menuItem" href="/toMachine" data-index="0">会议室设备管理</a></li>
                    </ul>
                </li>
                <li id="systemli">
                    <a href="#">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">组织管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="department.shtml" data-index="0">部门管理</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="role.shtml" data-index="0">角色管理</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="roleUser.shtml" data-index="0">用户管理</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i
                        class="fa fa-bars"></i> </a>
                </div>
            </nav>
        </div>
        <div class="row content-tabs">
            <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
            </button>
            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <a href="javascript:;" class="active J_menuTab" data-id="index_v1.html">首页</a>
                </div>
            </nav>
            <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
            </button>
            <div class="btn-group roll-nav roll-right">
                <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                </button>
                <ul role="menu" class="dropdown-menu dropdown-menu-right">
                    <li class="J_tabShowActive"><a>定位当前选项卡</a>
                    </li>
                    <li class="divider"></li>
                    <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                    </li>
                    <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                    </li>
                </ul>
            </div>
            <a href="/user/logout" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src=""
                    frameborder="0"
                    data-id=""/>
        </div>
        <div class="footer" style="height: 43px">
            <div class="pull-right" style="margin-top: 4px">&copy; 2018 <a href="#" target="_blank">微光自动化办公平台</a>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
<script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
<script th:src="@{/js/plugins/layer/layer.min.js}"></script>

<!-- 自定义js -->
<script th:src="@{/js/hplus.js}"></script>
<script th:src="@{/js/contabs.js}"></script>

<!-- 第三方插件 -->
<script th:src="@{/js/plugins/pace/pace.min.js}"></script>
<script th:inline="javascript">
    /* <![CDATA[ */
    $("#meetli").hide();
    $("#roomli").hide();
    $("#systemli").hide();
    var permIds = [[${session.permIds}]];
    console.log(permIds);
    for(var i=0;i<permIds.length;i++){
        if(2==permIds[i]){
            $("#meetli").show();
        }
        if(3==permIds[i]){
            $("#roomli").show();
        }
        if(4==permIds[i]){
            $("#systemli").show();
        }
    }

    //

    /* ]]> */

</script>

</body>
</html>
